package run

import (
	"goframe/cfg"
	"goframe/log"
	"time"
)

var (
	ABC_Conf, conf_err = cfg.Get_Conf()
)

func init() {
	if ABC_Conf != nil {
		if ABC_Conf.MAIN.Daemon {
			cfg.Daemon(0, 0)
		}
	}
}

func Run() {
	for {
		log.Log_Info("TEST!")
		time.Sleep(time.Second * 2)
	}

}
